#include "Sa2dDom.h"


	arena::arena(){
		myborder = new arenaBorder();
	}

    int arena::getElasticity()
    {
        return elasticity;
    }

    double arena::getFriction()
    {
        return friction;
    }

    arenaBorder *arena::getBorder()
    {
        return myborder;
    }

    int arena::getRadius()
    {
        return radius;
    }

    double arena::getSurface_speed()
    {
        return surface_speed;
    }

    void arena::setElasticity(int elasticity)
    {
        this->elasticity = elasticity;
    }

    void arena::setFriction(double friction)
    {
        this->friction = friction;
    }

    void arena::setMyborder(arenaBorder *myborder)
    {
        this->myborder = myborder;
    }

    void arena::setRadius(int radius)
    {
        this->radius = radius;
    }

    void arena::setSurface_speed(double surface_speed)
    {
        this->surface_speed = surface_speed;
    }

    string arena::toString(int indent){
    	string tabs = this->getIndent(indent);
    	stringstream returnString;

    	returnString << tabs << "Arena:\n";
    	returnString << tabs << "radius: " << getRadius() << "\n";
    	returnString << tabs << "elasticity: " << getElasticity() << "\n";
    	returnString << tabs << "friction: " << getFriction() << "\n";
    	returnString << tabs << "surface speed: " << getSurface_speed() << "\n";
    	returnString << "\n";
    	returnString << myborder->toString(indent+1);

    	return returnString.str();
    }
